Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding example to hx-ext documentation #3109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zachczx
Copy link
Contributor

@zachczx zachczx commented Jan 6, 2025

Hi,

I read the hx-ext docs while doing stuff, and I thought it can be made clearer with an example for those who have multiple extensions.

@@ -4,7 +4,7 @@ title = "hx-ext"

The `hx-ext` attribute enables an htmx [extension](https://htmx.org/extensions) for an element and all its children.

The value can be a single extension name or a comma separated list of extensions to apply.
The value can be a single extension name or a list of extension names (separated by commas).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is a relevant wording change, as "comma-separated" is a relatively common term now, for ex in the renowned CSV format (we may be missing a hyphen in between those 2 words here though 🧐 )


```html
<body hx-ext="preload,morph">
...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a comment here similar to the one above ?

Suggested change
...
"preload" and "morph" extensions are used in this part of the tree

@Telroshan Telroshan added the documentation Improvements or additions to documentation label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants